{extends file="$templateDir/layout/normal/layout.tpl"}
{block name=body}
<div class="show png" id="show">
	<div class="st png"></div>
	<div class="scon">
		<div class="scl">
			<div class="lt" id="message">{$message|default:""}</div>
			<form method="post" id="loginform">
			<ul class="linfo">
				<li>
					<div class="il">用户名：</div>
					<div class="ir">
						<div class="inputbg1 png"><input type="text" name="username" maxlength="50" id="loginform_username"/></div>
					</div>
				</li>
				<li>
					<div class="il">密&#12288;码：</div>
					<div class="ir">
						<div class="inputbg1 png"><input type="password" name="password" maxlength="50" id="loginform_password"/></div>
					</div>
				</li>
				<li>
					<div class="il">验证码：</div>
					<div class="ir">
						<div class="inputbg2 png"><input type="text" name="validate" maxlength="4" id="loginform_vcode"/></div>
						<img class="vcode" src="{$url_base}home/admin/src/httpdata/validate.php" id="info_vimg"/>
						<div class="vchange"><a onclick="changeVcode('info_vimg')">换一张</a></div>
					</div>
				</li>
				<li>
					<div class="ir">
						<div class="btnlogin png" id="btnlogin"></div>
					</div>
				</li>
			</ul>
			</form>
		</div>
		<div class="scr png"></div>
	</div>
</div>
<input type="hidden" id="url_base" value="{$url_base}"/>
<script>
	function changeVcode(id){
		$("#"+id).attr("src","{$url_base}home/admin/src/httpdata/validate.php?"+Math.random());
	}
</script>
{/block}